<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form>
        <input id="input" type="file" name="video">
        <button type="submit">上传视频</button>
    </form>
    <script>
        let input = document.getElementById("input")
        input.addEventListener('change', function () {
            // 获取 FileList 对象
            const files = input.files;
            console.log(files, "=====file");


        });

    </script>
</body>

</html>